package com.example.clxy.dao;

import com.example.clxy.entity.School;

import com.example.clxy.result.business.PageResult.SchoolPageResult;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface SchoolMapper {
    int deleteByPrimaryKey(String schoolid);

    int insert(School record);

    int insertSelective(School record);

    School selectByPrimaryKey(String schoolid);

    int updateByPrimaryKeySelective(School record);

    int updateByPrimaryKey(School record);

    int deleteByid (String schoolid);

    List<SchoolPageResult> getSchoolbyname(@Param("schoolname") String schoolyname,
                                           @Param("begin")int begin,
                                           @Param("end")int end,
                                           @Param("pagesize")int pagesize);

    List<SchoolPageResult> getSchoolbyid(@Param("Schoolid") String Schoolid,
                                         @Param("begin")int begin,
                                         @Param("end")int end,
                                         @Param("pagesize")int pagesize);

    String[] getAllSchoolName();
}